package JUintTesting;
import static org.junit.Assert.*;
import ProjectMain.ICalCreator;
import org.junit.Test;


/**
 * @Author: Ryan Carvalho
 * @Author: Nathan Butler
 * @Author Rhys Higa
 * @Version: October 20, 2013
 *
 */
public class JunitTest {

	/**This test to see if the findCRN works
	 * input the different CRN numbers what the string should yield to test
	 * Remember to use the escape key as I do in test 2 for if the result has quotations in it.
	*/
	@Test
	public void CRNTest() {
		ICalCreator cal = new ICalCreator();
		//Test 1
		String result = cal.findCRN("76626");
		assertEquals("76626,MUS 106,Intro to Music Literature,MWF,0930-1020a,MB 36,08/26-12/20", result);
		//Test 2
		String result2 = cal.findCRN("72250");
		assertEquals("72250,NREM 203,\"Ap Cal: Mgt, Life Sci,Hum Res\",TR,1030-1145a,BIL 150,08/26-12/20", result2);
		//Test 3
		String result3 = cal.findCRN("80033");
		assertEquals("80033,NURS,220L,Health & Illness I Lab,T,0800-1100a,TBA,TBA,08/26-12/20", result3);
		
	}

}
